import { createApp } from 'vue'
import App from './App.vue'
import { setupAntd } from '@/plugins/antd-ui';
import setupRouter from '@/router';
import "@/assets/css/global.css";
import pinia from './store';
import { setupGlobalComponents } from '@/components';
import MdEditor from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import MarkdownIt from 'markdown-it';
const md = new MarkdownIt();

async function bootStrap() {
    const app = createApp(App);
    
    await setupAntd(app);

    await setupRouter(app);

    await setupGlobalComponents(app);
    
    app.use(pinia);

    app.use(MdEditor);

    app.mount('#app');
}

void bootStrap();

